package com.red.star.macalline.data.mappers;

import com.red.star.macalline.data.core.base.MyMapper;
import com.red.star.macalline.data.entity.MallCustomer;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author AMGuo
 * @Description
 * @date 2018/05/22 10:13
 */
public interface MallCustomerMapper extends MyMapper<MallCustomer> {

	MallCustomer findMallCustomerByMallCodeAndId(@Param("mallCode") String mallCode,@Param("id") Integer id);

    @Select(value = "select * from t_mall_customer t where t.mall_code = #{mallCode}")
    List<MallCustomer> findByMallCode(@Param("mallCode") String mallCode);

	void deleteByMallCode(@Param("mallCode") String mallCode);
}
